{include file="public:header" /}
<!--添加图片-->
<form id="info_form" action="{:url('editDo')}" method="post" enctype="multipart/form-data">
<input type="hidden" name="house_id" value="{$house_id}">
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">修改图片</li>
			<li><a href="{:url('House/index',['menuid'=>458])}">返回楼盘列表</a></li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">
                        <tr>
                            <th>所属楼盘 :</th>
                            <td>
                                <span id="housename">{$house_title}</span>
                            </td>
                        </tr>
					<tr>
						<th width="120">所属栏目 :</th>
						<td>
							{:getLinkMenu(10,'cate_id','select',$info['cate_id'])}
                        </td>
					</tr>
					<tr>
						<th>图片名称 :</th>
						<td>
							<input type="text" name="title" class="input-text" size="20" value="{$info.title}">
						</td>
					</tr>
		            <tr>
						<th width="120">选择 :</th>
                        <td>
							{notempty name='info.img'}
								<img src="{$info.img}" width="100" /><br />
							{/notempty}
							<input type="file" name="img" />
                        </td>
					</tr>
  				<tr>
						<th>状态 :</th>
		 				<td>
		                	<label><input type="radio" name="status" class="radio_style" value="1" {if condition="$info.status eq 1"}checked="checked"{/if}> 启用 </label>&nbsp;&nbsp;
							<label><input type="radio" name="status" class="radio_style" value="0" {if condition="$info.status eq 0"}checked="checked"{/if}>禁用</label>
						</td>
					</tr>
				</table>
			</div>
        </div>
		<input type="hidden" name="cate_name" id="cate_name" value="{$info.cate_name}"/>
		<input type="hidden" name="id" value="{$info.id}">
		<div class="mt10"><input type="submit" value="提交" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
	</div>
</div>
</form>
{include file="public:footer" /}
<script type="text/javascript">
	$(function(){
		$("#cate_id").bind('change',function(){
			$("#cate_name").val($(this).find("option:selected").text());
		});
	});
</script>

</body>
</html>